package com.yongchun.commons.enums;

/**
 * @author afeng
 * @version 1.0
 * @date 2023/3/14 下午1:14
 */
public enum AgenterStaticDataRewardTypeEnum {
    DEFAULT(1, "普通推广"),
    GOLD(2, "金牌推广"),
    INVITE_AGENTER(3, "一次性补差"),
    GOLD_CASH(4, "提现"),
    ;

    private int type;
    private String desc;

    AgenterStaticDataRewardTypeEnum(int type, String desc) {
        this.type = type;
        this.desc = desc;
    }

    public static String getRewardTypeEnum(int type) {

        for (AgenterStaticDataRewardTypeEnum var : AgenterStaticDataRewardTypeEnum.values()) {
            if (type == var.getType())
                return var.getDesc();
        }
        return "普通推广";
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
